package com.yhq.basic.annotation.repeatable;

/**
 * @author hqyin
 * @date 2023/1/31 8:03 下午
 */
public class RepeatableTest {
    public static void main(String[] args) throws NoSuchMethodException {
        ReviewRecords reviewRecords = ReviewLog.class.getMethod("review").getAnnotation(ReviewRecords.class);
        for (ReviewRecord reviewRecord : reviewRecords.value()) {
            System.out.println(reviewRecord);
        }

        ReviewRecord[] reviewRecordArr = ReviewLog.class.getMethod("review1").getAnnotationsByType(ReviewRecord.class);
        for (ReviewRecord reviewRecord : reviewRecordArr) {
            System.out.println(reviewRecord);
        }

    }
}
